package com.pattern.decorator.general;

/**
 * 装饰器的抽象类
 */
public abstract class Decorator extends Component {
    private Component component;
    public Decorator(Component component){
        this.component = component;
    }

    @Override
    public void operation() {
        component.operation();
    }
}
